package com.cx.base.day20_enum.enumernation;

import java.util.HashSet;

/**
 * @author shkstart
 * @date 8/3/2019 - 9:29 AM
 */

public class Test1_Class_To_Enum {

    private Test1_Class_To_Enum(String season) {
        System.out.println(Test1_Class_To_Enum.i);
        System.out.println(Test1_Class_To_Enum.season);
        System.out.println(i + season + System.currentTimeMillis());
    }

    private static int i;

    public static final Test1_Class_To_Enum spring = new Test1_Class_To_Enum("春");
    public static final Test1_Class_To_Enum summer = new Test1_Class_To_Enum("夏");
    public static final Test1_Class_To_Enum autumn = new Test1_Class_To_Enum("秋");
    public static final Test1_Class_To_Enum winter = new Test1_Class_To_Enum("冬");

    private static String season = "all";

    static {
        System.out.println(i + System.currentTimeMillis());
        i = 1;
        System.out.println(i + System.currentTimeMillis());
        Test1_Class_To_Enum spring = new Test1_Class_To_Enum("春");
    }

    public static void main(String[] args) {
        Test1_Class_To_Enum class_season = Test1_Class_To_Enum.autumn;
        System.out.println(class_season.i + System.currentTimeMillis());
        HashSet<String> set = new HashSet<String>();
    }
}


